import java.util.Scanner;

public class java3 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        char i;
        i=sc.next().charAt(0);
        System.out.printf("%c\n",i);
        System.out.printf("%c\n",i);
        sc.close();
    }
}
